<template>
    <div class="box">
        <div class="head">
            <span>限时抢购</span>
            <span class="right">查看更多
                <span class="iconfont icon-xiangyou1"></span>
            </span>
        </div>
        <div class="content">
            <div class="contentbox" v-for="(good,index) in good" :key="index">
                <img :src="good.img" alt="">
                <div class="headline">{{good.name}}</div>
                <div class="label">{{good.label}}</div>
                <div class="price">
                    <span class="nowprice">￥{{good.new}}</span>
                    <span class="oldprice">￥{{good.old}}</span>
                </div>
            
            </div>

        </div>


    </div>
</template>

<script>
//chuang
export default {
    name:"LimitedDian",
    data(){
        return{
            good:[
                {
                    name:"滚筒洗衣机1A",
                    profile:"变频节能巨省电，来买呀",
                    new:"1299",
                    old:"1499",
                    label:"99.6%好评",
                    img:"https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/a0d54b116c635c20c243e90ed5fd1905.jpg?thumb=1&w=280&h=280"
                },
                {
                    name:"米家十字四门冰箱",
                    profile:"变频节能巨省电，来买呀",
                    new:"3299",
                    old:"3999",
                    label:"99.6%好评",
                    img:"https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/58e72ec1aab3113e4ef474d3a5e78139.jpg?thumb=1&w=280&h=280"
                },
                {
                    name:"米家新3级空调",
                    profile:"变频节能巨省电，来买呀",
                    new:"1999",
                    old:"2199",
                    label:"99.6%好评",
                    img:"https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/5eee1be9900e970b3ea4c0343d930424.jpg?thumb=1&w=280&h=280"
                },
            ]
        }
    }
}
</script>

<style scoped>
.box{
  width: 100%;
  padding: 0 0.1rem;
  display: flex;
  flex-direction: column;
  margin-top: .1rem;
  box-sizing: border-box;
  background-color: transparent;
}
.head{
    width: 100%;
    display: flex;
    justify-content: space-between;
        line-height: .22rem;
}
.right{
    font-size: 12px;
    color: rgb(185, 176, 176);

}
.content{
    width: 100%;
    display: flex;
       justify-content: space-around;
    flex-wrap: wrap;
    background-color: white;
    /* margin-top: .1rem; */
}
img{
    width: .85rem;
    height: .85rem;
}
.contentbox{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: .08rem;
 
}
.headline{
    font-size: 14px;
}
.label{
    background-color: rgba(245, 214, 155,0.5);
    color: orange;
    font-size: .1rem;
}
.nowprice{
    color: rgb(248, 114, 4);
}
.oldprice{
    color: rgb(204, 200, 200);
    text-decoration-line: line-through;
    font-size: 10px ;
}

</style>